package com.pbs.contact;

public class Organization {
	private String organization;
	private String positions;
	private int type;

	public static final int TYPE_CUSTOM = 0;
	public static final int TYPE_WORK = 1;
	public static final int TYPE_OTHER = 2;

	
	
	public String getOrganization() {
		return organization;
	}

	public void setOrganization(String organization) {
		this.organization = organization;
	}

	public String getPositions() {
		return positions;
	}

	public int getType() {
		return type;
	}

	public String getTypeName() {
		switch (type) {
		case TYPE_CUSTOM: {
			return "Custom Organization";
		}
		case TYPE_WORK: {
			return "Work Organization";
		}
		case TYPE_OTHER: {
			return "Custom Organization";
		}
		default:{
			return "Unknow Organization";
		}
		}
	}

	public void setPositions(String title) {
		this.positions = title;
	}

	public Organization() {

	}

	public Organization(String org, String title, int type) {
		this.organization = org;
		this.positions = title;
		this.type = type;
	}

}
